package com.bianguo.android.tencentpushdemo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/4/20.
 */

public class TimeFormatUtil {

    public static String longToString(long time, String formatType){
        String timeStr = null;
        Date date = new Date(time);
        SimpleDateFormat format = new SimpleDateFormat(formatType);
        timeStr = format.format(date);
        return timeStr;
    }
}
